make two memory hypercalls vNUMA-aware
authorWei Liu <wei.liu2@citrix.com>
Tue, 17 Mar 2015 10:03:29 +0000 (11:03 +0100)
committerJan Beulich <jbeulich@suse.com>
Tue, 17 Mar 2015 10:03:29 +0000 (11:03 +0100)
commit319442762f6438188105282c71648b460e61a80a
tree3051b73adf22ae51f9bcc620c831c42042e8f49f
parent525ee49e2c3a3ec18a9b7cb8a93526777952e502
make two memory hypercalls vNUMA-aware

Make XENMEM_increase_reservation and XENMEM_populate_physmap
vNUMA-aware.

That is, if guest requests Xen to allocate memory for specific vnode,
Xen can translate vnode to pnode using vNUMA information of that guest.

XENMEMF_vnode is introduced for the guest to mark the node number is in
fact virtual node number and should be translated by Xen.

XENFEAT_memory_op_vnode_supported is introduced to indicate that Xen is
able to translate virtual node to physical node.

Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Hand struct domain via struct memops_arg's respective field to
construct_memop_from_reservation().

Signed-off-by: Jan Beulich <jbeulich@suse.com>
xen/common/kernel.c
xen/common/memory.c
xen/include/public/features.h
xen/include/public/memory.h